<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>4-浮动左右布局</title>
    <style>
        .box{
            width: 1000px;
            height: 400px;
            border: 1px solid red;
            margin:30px auto;
        }
        .box .left{
            width: 200px;
            height: 400px;
            background: blue;
            float: left;
        }
        .box .right{
            width:200px;
            height: 400px;
            float: right;
            background: orange;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="left">左护法</div>
        <div class="right">右护法</div>
    </div>
</body>
</html>